import http from './index'
// interface httpPorps {
//     usr:string,
//     method:string,
//     data:any
// }
//主页请求收入概况
export const  homeIncomeApi:any = (user:object) =>{
    return  http({
        url:'/storefront/home/income',
        method:"POST",
        data:user
    })
}
//主页请求订单显示区间
export const  homeOrderApi:any = (user:object) =>{
    return  http({
        url:'/storefront/home/order',
        method:"POST",
        data:user
    })
}
//主页请求最近七天的收入
export const  homeIncomeListApi:any = () =>{
    return  http({
        url:'/storefront/home/Income/list',
        method:"POST",
    })
}
//主页请求最近七天的订单数
export const  homeOrderListApi:any = () =>{
    return  http({
        url:'/storefront/home/order/list',
        method:"POST",
    })
}